print("Hello World")

#str(),将int和float型的数转化成字符串
message = "Hello World"
print(message)

message_2 = "protect the Earth"
print(message_2)

name = "Love world"
print(name.title())
print(name.upper())#将字符串全部大写打印
print(name.lower())#将字符串全部小写打印

#f""的用法
first_name="in"
middle_name="the"
last_name="world"
full_name=f"{first_name} {middle_name} {last_name}"#将字符串整合到一块
print(full_name)
print(f"I {full_name}")
message=f"I {full_name}"#将多个字符串给message赋值
print(message)

#删除多余空白
language='\tpython  \t'
print(language)
language_1=language.rstrip()#删除末尾的多余空白
print(language_1)
language_2=language.lstrip()#删除开头的空白
print(language_2)
language_3=language.strip()#同时删除开头和末尾的空白
print(language_3)

#浮点数与整数的计算
a=0.1
b=0.2
c=1
d=2
print(a+b)
print(a+c)
print(c*d)
print(c*a)
print(d/c)
#平方运算
PingFang=3**2
print(PingFang)

e=11_11_0000_41
print(e)#打印时会忽略下划线

